#include"proc.h"
#define STYLE '='
#define TAIL '>'

void process()
{
    const char* s = "|/-\\";
    char bar[102];
    memset(bar, '\0', sizeof(bar));

    for(int i = 0; i<= 100; i++ )
    {
        printf("[%-100s][%d%%][%c]\r", bar, i, s[i%4]);
        fflush(stdout);

        bar[i] = STYLE;
        if(i != 99)
        {
            bar[i + 1] = TAIL;
        }
            
        usleep(100000);
    }
}
